//
//  DSUnit.m
//  DSJY
//
//  Created by 冯华强 on 16/10/18.
//  Copyright © 2016年 dsjy. All rights reserved.
//  单元

#import "DSUnit.h"
#import "MTConst.h"
#import "NSString+Extension.h"

@implementation DSUnit

- (NSString *)unitimageString
{
    if (_unitimageString == nil && self.unitimage) {
        _unitimageString = [[DSMainDomain stringByAppendingString:[self.unitimage trim]] specialFormat];
    }
    return _unitimageString;
}

- (NSString *)jsonpathString
{
    if (_jsonpathString == nil && self.jsonpath) {
        _jsonpathString = [[DSMainDomain stringByAppendingString:[self.jsonpath trim]] specialFormat];
    }
    return _jsonpathString;
}

- (BOOL)iscloseb
{
    return [self.isclose boolValue];
}
@end
